home *** CD-ROM | disk | FTP | other *** search
- #include "line.h"
- #include "colors.h"
- #include "patterns.h"
- #include "khbgi.h"
-
- void Line::outtextxy(loc xy, char* text, int pat)
- {
- settextstyle(DEFAULT_FONT, HORIZ_DIR, 1);
- settextjustify(LEFT_TEXT, TOP_TEXT);
- bar(xy.X, xy.Y, xy.X + textwidth(text),
- xy.Y + pScreenSet->standart_height + 1,
- pColorSet->colors.HDR_BAK_COLOR,
- pColorSet->colors.FILL_COLOR, (uchar*)pattern[pat]);
- if(text)
- {
- setcolor(pColorSet->colors.HDR_ATTR_COLOR);
- outtextat(loc(xy.X, xy.Y), text);
- }
- }
- /////////////////////////
- /*
- void main()
- {
- if(!init_KNOW_HOW())
- return;
- Line l;
- l.outtextxy(loc(10, 10), "Hello, World !", 16);
- pColorSet->loadColorSet(1);
- l.outtextxy(loc(10, 10), "Hello, World !", 16);
- pColorSet->loadColorSet(2);
- l.outtextxy(loc(10, 10), "Hello, World !", 16);
- close_KNOW_HOW();
- closegraph();
- }
- */